projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0a63e95
)
testgtk: Check visual, not colormap for RGBA availability
author
Benjamin Otte
<otte@redhat.com>
Sat, 28 Aug 2010 21:13:19 +0000
(23:13 +0200)
committer
Benjamin Otte
<otte@redhat.com>
Sun, 26 Sep 2010 13:11:32 +0000
(15:11 +0200)
tests/testgtk.c
patch
|
blob
|
history
diff --git
a/tests/testgtk.c
b/tests/testgtk.c
index f891f6eecd0a6116c218bc0d724c5ff07ef29145..025f89d467870fae89ec460756913e86a92df05a 100644
(file)
--- a/
tests/testgtk.c
+++ b/
tests/testgtk.c
@@
-147,7
+147,7
@@
on_alpha_window_expose (GtkWidget *widget,
allocation.height / 2,
radius * 1.33);
- if (gdk_screen_get_rgba_
colormap
(gtk_widget_get_screen (widget)) &&
+ if (gdk_screen_get_rgba_
visual
(gtk_widget_get_screen (widget)) &&
gtk_widget_is_composited (widget))
cairo_set_source_rgba (cr, 1.0, 1.0, 1.0, 0.0); /* transparent */
else